<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>8</title>
		<script src="lib/vue.js"></script>
	</head>
	<body>
		<div id="example">
			{{message }}
			<p>{{reverseMessage()}}</p>
		</div>
		
	</body>
	<script type="text/javascript">
		var example1=new Vue({
			el:'#example',
			data:{
				message:'you'
			},
			methods:{
				reverseMessage:function(){
					return this.message.split('').reverse().join('')
				}
			}
		});
		//console.log(example1.message);
		example1.message='vue';
		//console.log(example1.reverseMessage);
	</script>
</html>
